import service from '../request.js'

export const classes_add = data=>{
	return service({
		url: '/classes/add',
		method: 'post',
		data: JSON.stringify(data)
	})
}

export const classes_delete = data=>{
	return service({
		url: '/classes/delete/'+data,
		method: 'delete'
	})
}

export const classes_page = (id,data)=>{
	return service({
		url: '/classes/page/'+ id,
		method: 'post',
		data: JSON.stringify(data)
	})
}

export const classes_list = (tno)=>{
	return service({
		url: '/classes/list/'+ tno,
		method: 'get'
	})
}